<?php

namespace app\common\model\mysql;

use think\Model;

class WorkRob extends BaseModel
{
    public function work(){
        return $this->belongsTo(Work::class,'work_id');
    }

    public function user(){
        return $this->belongsTo(User::class,'user_id');
    }

    public function userInfo(){
        return $this->belongsTo(UserInfo::class,'user_id','user_id');
    }
}
